/* var arr=['a','b','c'];
//转字符串
console.log(arr.toString());//'a,b,c'
//如何区分相同名字的API是不是同一个，看前边的对象是不是相同的数据类型
var */

// var m = ['a','b','c','d','e','f','g','h'];
// /*
//  console.log(m.slice(2, 4));
// console.log(m.slice(-3,-1));
//  */
// console.log( m .splice(1,0,'wl'));
// console.log(m)
/* var m = ['a','b','c','d','e','f','g','h'];
m.splice(4,2);
m.splice(4,1,'m');
m.splice(1,0,'z');
console.log(m) */
/* var m = ['a','b','c','d','e','f','g','h'];
console.log(m.reverse())

var n = ['a','b','e','f','g','h','c','d'];
console.log(n.sort()) */
var a=['和谐福','友善福'];
if(a.indexOf('爱国福')==-1){
	a.push('爱国福')
}console.log(a)